package com.example.pagingdemo.model;

import androidx.databinding.BaseObservable;

import java.util.List;

/**
 * @author: tuyrt7 on 2020/10/27.
 */
public class DoctorVo {


    /**
     * flag : true
     * doc_arr : [{"doctor_id":"1","head_rul":"http://dev2.bayair.cn:8065/xiaoke/uploadfile/202010/12/2.jpg","name":"张医生","hospital_name":"苏州医院1","department_name":"放射科","rank_name":"主任医生","lab_arr":["肺结节","肺小结节"],"product_arr":[{"id":"2","name":"增值服务","icon":"/uploadfile/202010/21/c3e041ed8fcdd2.jpg","describe":"增值服务享4大特权","past_str":"3","past_time":"90","doc_id":"1","price":"300","status":"1","create_time":"2020-10-21 15:47:38","produce_arr":[{"id":"1","icon":"/uploadfile/202010/21/fa0c9b38c9a45d.jpg","name":"云查房","status":"1","create_time":"2020-05-09 14:28:01"},{"id":"3","icon":null,"name":"云医嘱","status":"1","create_time":"2020-05-09 15:01:33"}]}]},{"doctor_id":"2","head_rul":"http://dev2.bayair.cn:8065/xiaoke/uploadfile/202010/20/e2219d6e6c6e66.png","name":"test1","hospital_name":"苏州医院1","department_name":"放射科","rank_name":"主任医生","lab_arr":["肺小结节","肺癌","肺癌1"],"product_arr":[{"id":"2","name":"增值服务","icon":"/uploadfile/202010/21/c3e041ed8fcdd2.jpg","describe":"增值服务享4大特权","past_str":"3","past_time":"90","doc_id":"1","price":"300","status":"1","create_time":"2020-10-21 15:47:38","produce_arr":[{"id":"1","icon":"/uploadfile/202010/21/fa0c9b38c9a45d.jpg","name":"云查房","status":"1","create_time":"2020-05-09 14:28:01"},{"id":"3","icon":null,"name":"云医嘱","status":"1","create_time":"2020-05-09 15:01:33"}]}]}]
     */

    public boolean flag;
    public List<DocArrBean> doc_arr;

    @Override
    public String toString() {
        return "DoctorVo{" +
                "flag=" + flag +
                ", doc_arr=" + doc_arr +
                '}';
    }

    public static class DocArrBean extends BaseObservable {
        /**
         * doctor_id : 1
         * head_rul : http://dev2.bayair.cn:8065/xiaoke/uploadfile/202010/12/2.jpg
         * name : 张医生
         * hospital_name : 苏州医院1
         * department_name : 放射科
         * rank_name : 主任医生
         * lab_arr : ["肺结节","肺小结节"]
         * product_arr : [{"id":"2","name":"增值服务","icon":"/uploadfile/202010/21/c3e041ed8fcdd2.jpg","describe":"增值服务享4大特权","past_str":"3","past_time":"90","doc_id":"1","price":"300","status":"1","create_time":"2020-10-21 15:47:38","produce_arr":[{"id":"1","icon":"/uploadfile/202010/21/fa0c9b38c9a45d.jpg","name":"云查房","status":"1","create_time":"2020-05-09 14:28:01"},{"id":"3","icon":null,"name":"云医嘱","status":"1","create_time":"2020-05-09 15:01:33"}]}]
         */

        public String doctor_id;
        public String head_rul;
        public String name;
        public String hospital_name;
        public String department_name;
        public String rank_name;
        public List<String> lab_arr;
        public List<ProductArrBean> product_arr;

        @Override
        public String toString() {
            return "DocArrBean{" +
                    "doctor_id='" + doctor_id + '\'' +
                    ", head_rul='" + head_rul + '\'' +
                    ", name='" + name + '\'' +
                    ", hospital_name='" + hospital_name + '\'' +
                    ", department_name='" + department_name + '\'' +
                    ", rank_name='" + rank_name + '\'' +
                    ", lab_arr=" + lab_arr +
                    '}';
        }

        public static class ProductArrBean extends BaseObservable {
            /**
             * id : 2
             * name : 增值服务
             * icon : /uploadfile/202010/21/c3e041ed8fcdd2.jpg
             * describe : 增值服务享4大特权
             * past_str : 3
             * past_time : 90
             * doc_id : 1
             * price : 300
             * status : 1
             * create_time : 2020-10-21 15:47:38
             * produce_arr : [{"id":"1","icon":"/uploadfile/202010/21/fa0c9b38c9a45d.jpg","name":"云查房","status":"1","create_time":"2020-05-09 14:28:01"},{"id":"3","icon":null,"name":"云医嘱","status":"1","create_time":"2020-05-09 15:01:33"}]
             */

            public String id;
            public String name;
            public String icon;
            public String describe;
            public String past_str;
            public String past_time;
            public String doc_id;
            public String price;
            public String status;
            public String create_time;
            public List<ProduceArrBean> produce_arr;

            public static class ProduceArrBean extends BaseObservable {
                /**
                 * id : 1
                 * icon : /uploadfile/202010/21/fa0c9b38c9a45d.jpg
                 * name : 云查房
                 * status : 1
                 * create_time : 2020-05-09 14:28:01
                 */

                public String id;
                public String icon;
                public String name;
                public String status;
                public String create_time;
            }
        }
    }
}
